<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>上传头像</title>
</head>
<body>
    <form action="/upload" method="POST" 
    enctype="multipart/form-data">
        <input type="file" accept="image/jpg,image/png,image/jpeg" 
        required name="photo">
        <input type="submit" value="上传头像">
    </form>
</body>
</html>